home *** CD-ROM | disk | FTP | other *** search
/ BUG 1 / BUGCD1996_0708.ISO / pc / util / minilin / minilin.exe / ETC / START_ET.{21 < prev    next >
Text File  |  1995-01-15  |  1KB  |  31 lines

  1. #! /bin/sh
  2. #
  3. # start.ether    Starts up the Ethernet TCP/IP system ( if you have it! )
  4. #
  5. #
  6.  
  7. HOSTNAME=`cat /etc/HOSTNAME`
  8.  
  9.  
  10. # IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the 
  11. # eth0 interface. If you're only using loopback or SLIP, don't include the
  12. # rest of the lines in this file.
  13.  
  14. # Edit for your setup.
  15. IPADDR="199.1.1.101"    # REPLACE with YOUR IP address!
  16. NETMASK="255.255.255.0"    # REPLACE with YOUR netmask!
  17. NETWORK="199.1.1.0"    # REPLACE with YOUR network address!
  18. BROADCAST="199.1.1.255"    # REPLACE with YOUR broadcast address, if you
  19.             # have one. If not, leave blank and edit below.
  20. GATEWAY="199.1.1.1"    # REPLACE with YOUR gateway address!
  21.  
  22. # Uncomment ONLY ONE of the three lines below. If one doesn't work, try again.
  23. # /sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
  24. /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
  25. # /sbin/ifconfig  eth0 ${IPADDR} netmask ${NETMASK} 
  26.  
  27. # Uncomment these to set up your IP routing table.
  28. /sbin/route add -net ${NETWORK} netmask ${NETMASK}
  29. /sbin/route add default gw ${GATEWAY} metric 1
  30.  
  31.